from django.urls import path
from apps.users.views import UserView, LoginView, UserInfoView,\
    ModifyNameView,AuthUserView,UploadView


urlpatterns = [
    path('api/v1.0/users',UserView.as_view()),

    path('api/v1.0/session',LoginView.as_view()),
    # 个人中心类视图路由
    path('api/v1.0/user', UserInfoView.as_view()),
    # 修改用户名类视图路由
    path('api/v1.0/user/name', ModifyNameView.as_view()),

    # 上传头像
    path('api/v1.0/user/avatar', UploadView.as_view()),

    path('api/v1.0/user/auth', AuthUserView.as_view())


]